package com.dp.builder.exp1;

import com.dp.builder.exp1.builder.MoBikeBuilder;
import com.dp.builder.exp1.director.Director;
import com.dp.builder.exp1.product.Bike;

/**
 * @Author: Ruomeng
 * @Date: 2024/11/27
 * @Description : design-pattern
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        // 1.创建指挥者
        Director director = new Director(new MoBikeBuilder());
        // 2.获取产品
        Bike bike = director.construct();
        System.out.println(bike.getFrame() + "," + bike.getSeat());
    }

}
